package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Contract;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("contractMapper")
public interface ContractMapper {
    public List<Contract> selectEmpContract(int deptId, int empId, Integer value, Integer num, Integer vague, String content);

    public Contract selectEmpContractById(Integer conId);

    public List<Contract> selectEmpContractByStatus(Integer deptId,Integer contractStatus);

    public List<Contract> selectEmpContractByClassify(Integer deptId,Integer contractSort);

    public List<Contract> selectEmpContractByTheme(Integer deptId,String contractTheme);

    public List<Contract> selectEmpContractByCustomerName(Integer deptId,String customerName);

    public List<Map<String,Object>> computeSorts(Integer deptId);

    public List<Map<String,Object>> computePayStyle(Integer deptId);

    public List<Map<String,Object>> computeSignDate(Integer deptId);

    public List<Map<String,Object>> computeEndDate(Integer deptId);

    public List<Map<String,Object>> computeConStatus(Integer deptId);

    public List<Contract> findAllContractTheme();

    public List<Contract> findAllValidContract(Integer deptId);

    public List<Contract> findAllAppContract(int deptId);

    public List<Contract> findAllRefuseContract(int deptId);

    public List<Contract> findAllOurSigner();

    public Contract selectContractByConNo(String conNo);

    public List<Contract> selectCusContract(Integer cusId);

    public List<Contract> selectContractImplement();

    public List<Contract> selectContractPastThirty();

    public List<Contract> selectContractNotPayment();
}
